package cn.ekgc.bmdsad.day14;

public class Student extends Person implements Learnable{
    private double score;

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public Student() {
    }

    public Student(String name) {
        super ( name );
    }

    public Student(double score) {
        this.score = score;
    }

    public Student(String name, double score) {
        super ( name );
        this.score = score;
    }

    @Override
    public String learn(int n) {
        if (n == 1) {
            return "学习Java";
        }
        if (n == 2) {
            return "学习web";
        }
        if (n == 3) {
            return "学习框架师";
        }
        return "学习大数据";
    }
}
